// ex7_13_8a.cpp
#include <bits/types/FILE.h>
#include <iostream>
#include <cstring>
const unsigned int MaxSize = 12;
const int Season = 4;
const char *seasons[4] = {"Spring", "Summer", "Fall", "Winter"};

void fill(char arr[][MaxSize], double expense[]);
void show(char arr[][MaxSize], double expense[]);

int main(void)
{
	char arr[4][MaxSize];
	double expenses[Season];
	fill(arr, expenses);
	show(arr, expenses);
}

void fill(char arr[][MaxSize], double expense[])
{
	using std::cout;
	using std::cin;
	for (int i = 0; i < Season; i++)
	{
		strncpy(arr[i], seasons[i], sizeof(arr[i]));
		//strcpy(arr[i], seasons[i]);
	}
    for(int i = 0; i < Season; i++)
    {
        cout << "Enter " << arr[i] << " expenses: ";
        cin >> expense[i];
    }
}
void show(char arr[][MaxSize], double expense[])
{
	using std::cout;
	using std::cin;
	for (int i = 0; i < Season; i++)
	{
		cout << arr[i] << " expenses: " << expense[i] << "\n";
	}
}